﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ai_assignment_2
{
    class Queen
    {
        public int Row { get; set; }
        public int Column {get; set;}


        public Queen()
        {
            Row = -1;
            Column = -1;
        }
        public bool isAttacking(Queen q)
        {
            if (this.Row == q.Row || this.Column == q.Column)
                return true;
            if (Math.Abs(this.Row - q.Row) == Math.Abs(this.Column - q.Column))
                return true;
            return false;
        }
    }
}
